#pragma once

class CIPAddr
{
public:
	int i1;
	int i2;
	int i3;
	int i4;
	void ToChar(char* IPString)
	{	
		char* s1=new char[50];
		char* s2=new char[50];
		char* s3=new char[50];
		char* s4=new char[50];
		itoa(i1,s1,10);
		itoa(i2,s2,10);
		itoa(i3,s3,10);
		itoa(i4,s4,10);
		sprintf(IPString,"%s.%s.%s.%s",s1,s2,s3,s4);

	}
	CIPAddr();
	~CIPAddr();
	CIPAddr(int a1,int a2,int a3,int a4)
	{
		i1=a1;
		i2=a2;
		i3=a3;
		i4=a4;		
	}};
